<?php
class ArrayUtility
{
    public static function getColumn($arr, $column)
    {
        $result = array();
        foreach($arr as $row)
        {
            if(!isset($row[$column]))
            {
                continue;
            }
            $result[] = $row[$column];
        }
        return $result;
    }
    
    public static function toAssoc($arr, $column)
    {
        $result = array();
        foreach($arr as $row)
        {
            if(!isset($row[$column]))
            {
                continue;
            }
            $result[$row[$column]] = $row;
        }
        return $result;
    }
}